<?php
$this->breadcrumbs=array(
	'Pickdatas'=>array('admin'),
	'管理',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('pickdata-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>




<?php // $this->renderPartial('_search',array(
//'model'=>$model,
//)); 
?>

<?php
/* 
echo CHtml::button('关闭', array(
	'class'=>'button blue inline',
	'style'=>'width:100px;',
	'onclick'=>'parent',
));
*/ 
?>
<?php 
echo CHtml::button('刷新', array(
	'submit' => array('Sensors/results'),
	'class'=>'button blue inline',
	'style'=>'width:100px;'
)); 
?>
	
<section class="grid_9" id="dashtabs">
<div class="box-header">
  <?php echo $this->moduleName."列表"; ?></div>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'pickdata-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'RECORD_ID',
		'SENSORNAME_V',
		'SENSOR_N',
		'BTKEY_V',
//		'USER_ID',		
//		'BASENAME_V',
//		'SENSOR_SETUP_NAME_V',		
		'BATTERY_N',		
		'VOL_N',
		'ELEC_N',
		'INTER_N',
		'HINTER_N',
		'TEMPER_N',
		'PICKEDTIME_D',
		'STATUS_V',
		'REMARK_V',
		array(
			'class'=>'CButtonColumn',
            'viewButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page.png',            
            'updateButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page_edit.png',
            'deleteButtonImageUrl'=> Yii::app()->request->baseUrl.'/css/img/icons/16/page_delete.png',
		),
	),
    'template'=>'{items}{summary}{pager}',
    'htmlOptions'=>array(
    	'class'=>'cgridview'
    ),
    'cssFile' => Yii::app()->request->baseUrl.'/css/widgets/cgridview.css',
)); ?>
</section>